



//捕获错误
try{
    let d
    console.log(d.xxx)
}catch(error){
    console.log(error.message) // Cannot read property 'xxx' of undefined
    console.log(error.stack) // TypeError: Cannot read property 'xxx' of undefined
}
console.log('出错之后...')